package com.fileshare.web.dao;

import com.fileshare.web.dao.base.SequenceGenerater;

import com.fileshare.web.entity.Label;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface LabelRepository extends SequenceGenerater<Label> {
    @Override
    Label findBySeq(String seq);

    void addLabel(Label label);

    Label findByName(@Param("categorySeq") String categorySeq , @Param("name") String name);

    List<Label> findArticleLabels(String articleSeq);
}
